import java.io.IOException;
import java.net.Socket;
import java.util.Scanner;

public class client {
    public static void main(String[] args) throws Exception {
        Socket client =new Socket("localhost",9999);
        Scanner scanner=new Scanner(client.getInputStream());
        if(scanner.hasNext()){
            System.out.println("【HelloClient】"+scanner.next());

        }
        client.shutdownOutput();
        client.close();
    }
}
